<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>后台用户管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/admin-style.css' />
<script language="JavaScript" type="text/javascript" charset="utf-8" src="__PUBLIC__/js/jquery.js"></script>
<script language="JavaScript" type="text/javascript" charset="utf-8" src="__PUBLIC__/js/admin.js"></script>
<script language="javascript">
function changeurl(cid,continu,player,status){
	location.href='?s=Admin-Art-Show-typeid-'+cid+'-status-'+status+'-order-{$order}';
}
$(document).ready(function(){
	$ff84.show.table();
	$('#selectcid').change(function(){
		changeurl($(this).val(),'','','','');
	});
	$('#selectstars').change(function(){
		changeurl('','','',$(this).val(),'');
	});		
});
function createhtml(id){
	var offset = $("#html_"+id).offset();
	var left = (offset.left/2)+50;
	var top = offset.top+15;
	var html = $.ajax({
		url: '?s=Admin-Create-newsid-id-'+id,
		async: false
	}).responseText;
	$("#htmltags").html(html);
	$("#htmltags").css({left:left,top:top,display:""});	
	window.setTimeout(function(){
		$("#htmltags").hide();
	},1000);
}
</script>
</head>
<body class="body">
<!--生成静态预览框-->
<div id="htmltags" style="position:absolute;display:none;" class="htmltags"></div>
<!--背景灰色变暗-->
<div id="showbg" style="position:absolute;left:0px;top:0px;filter:Alpha(Opacity=0);opacity:0.0;background-color:#fff;z-index:8;"></div>
<form action="?s=Admin-Art-Show" method="post" name="myform" id="myform">
<table border="0" cellpadding="0" cellspacing="0" class="table">
<thead><tr><th class="r"><span style="float:left">资讯管理</span><span class="right"><a href="?s=Admin-Art-Add" style="float:right">添加文章资讯</a></span></th></tr></thead>
  <tr>
    <td class="tr ct" style="height:40px">
    	<input type="button" value="所有" class="submit" onClick="changeurl('','','','2');"> 
    	<input type="button" value="未审核" class="submit" onClick="changeurl('','','','0');"> 
    	<input type="button" value="已审核" class="submit" onClick="changeurl('','','','1');"> 
    	<select name="selectcid" id="selectcid">
			<option value="">按分类查看</option>
			<volist name="typearr" id="ppvod">
			<option value="{$ppvod.id}" <eq name="ppvod.id" value="$typeid">selected</eq>>{$ppvod.name}</option>
			</volist>
			</select> 
			<input type="text" name="wd" id="wd" maxlength="20" value="{$wd|default='输入关键字搜索影片'|urldecode}" onClick="this.select();" style="color:#666666"> 
			<input type="button" value="搜索" class="submit" onClick="post('?s=Admin-Art-Show');"></td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="table">
  <thead>
    <tr class="ct">
      <th class="r" width="20">ID</th>
      <th class="l" >标题</th>
      <th class="l" >分类</th>
      <th class="l" >状态</th>
      <th class="l" >更新时间</th>
      <th class="r" >操作</th>
    </tr>
  </thead>
  <volist name="artlist" id="artval">
  <tbody>
  <tr class="ct">
  	<td class="r ct">{$artval[id]}</td>
  	<td class="l ct">{$artval[title]}</td>
  	<td class="l ct"><volist name="typearr" id="val"><if condition="$artval[typeid] eq $val[id]">{$val[name]}</if></volist></td>
  	<td class="l ct"><eq name="artval[status]" value="1" ><a href="?s=Admin-Art-Showart-artid-{$artval[id]}-status-0" onClick="return confirm('确定取消审核该文章吗?')"  >审核</a><else /><a href="?s=Admin-Art-Showart-artid-{$artval[id]}-status-1" onClick="return confirm('确定审核该文章吗?')"  >未审核</a></eq></td>
  	<td class="l ct">{$artval[uptime]|date="Y-m-d H:i:s",###}</td>
  	<td class="r ct"><a href="?s=Admin-Art-Add-artid-{$artval[id]}">修改</a> | <a href="?s=Admin-Art-Del-artid-{$artval[id]}" onClick="return confirm('确定删除该文章吗?')"  >删除</a></td>
  </tr>
  </tbody>
  </volist>
    <tr>
      <td colspan="9" class="r pages">{$pages}</td>
    </tr>
</table>
</form>
<include file="./Public/system/footer.html" />
</body>
</html>